var ConstellationsView = function() {
	var self = this
	this.list = []


 	this.add = function(model, delay) {
		var c = new ConstellationItemView()
		c.animate(model, delay)
		self.list.push(c)
		c.rolledover.add(self.constellation_over)
		c.rolledout.add(self.constellation_out)
		return c
 	}

 	this.image = function(model) {
		var c = new ConstellationItemView()
		c.init(model)
		return c.print()
 	}

 	this.constellation_over = function(c) {
 		for (var i = 0; i < self.list.length; i++) {
 			// var isVisible = paper.view.bounds.contains(self.list[i].group.bounds)
 			// if(isVisible) 
 			if(c!= self.list[i]) self.list[i].dimdown();
 		};
 		c.over()
 	}

 	this.constellation_out = function (c) {
 		for (var i = 0; i < self.list.length; i++) {
 			self.list[i].out();
 		};
 	}

 	this.lock = function (b) {
 		for (var i = 0; i < self.list.length; i++) {
 			self.list[i].lock(b)
 		};
 	}
 
    return this

}
